function show(){
    $("#con-nav").toggle();
}



$(function () {
    var back = $("#goback");
    if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)){ // IE
        if(document.referrer!=""){
            back.fadeIn();
        }else{
            back.fadeOut();
        }
    }else{ //非IE浏览器
        if (navigator.userAgent.indexOf('Firefox') >= 0 ||
            navigator.userAgent.indexOf('Opera') >= 0 ||
            navigator.userAgent.indexOf('Safari') >= 0 ||
            navigator.userAgent.indexOf('Chrome') >= 0 ||
            navigator.userAgent.indexOf('WebKit') >= 0){

            if(document.referrer!=""){
                back.fadeIn();
            }else{
                back.fadeOut();
            }
        }else{ //未知的浏览器
            if(document.referrer!=""){
                back.fadeIn();
            }else{
                back.fadeOut();
            }
        }
    }
})


function before() {
    var radio1 = $("input[name='ssSelect']:checked").val();
    console.log(radio1)
    if (radio1 == "undefined"||radio1==null) {
        alert("请选择省市")
        return false;
    }
    var radio2 = $("input[name='klSelect']:checked").val();
    if (radio2 == "undefined"||radio2==null) {
        alert("请选择科类")
        return false;
    }
    console.log(radio1)
    return true;
}